package com.ea.eadp.nexus.test.pageDefinition.newconsole;

import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.openqa.selenium.NoSuchElementException;
import org.openqa.selenium.WebDriver;

public class VerifyParentEmailPage extends ConsoleBasePage {
    
    public VerifyParentEmailPage(WebDriver driver) {
        super(driver, VerifyParentEmailPage.class, "continueBtn");
    }
    
    public static By txt_parentEmailAddress = By.xpath("//li[@id='parent-email-container']/p[2]");
    public static By btn_skip = By.id("skipBtn");
    public static By txt_verifyPopupTitle = By.xpath("//div[@id='modal']/div[1]/div[1]");
    
    public boolean hasSkipButton() {
        try {
            driver.findElement(btn_skip);
            return true;
        } catch (NoSuchElementException e) {
            return false;
        }
    }
    
    public void skipThisStepOneTime() {
        sendControllerKey(Keys.UP);
        sendControllerKey('A');
    }
    
}
